package net.classes;

import java.util.ArrayList;

public class Token {
	
	public static ArrayList<String> tokenizer(String word, int size){
		
		String processedword = word;
		String token;
		ArrayList<String> tokens;
		int wordsize;
		
		wordsize = processedword.length();
		
		tokens = new ArrayList<String>();
		
		for (int i = 0; i + (size - 1) < wordsize  ; i ++){
			
			token = processedword.substring(i, i + size);
			tokens.add(token);
			
		}
		
		return tokens;
		
	}
	
}
